import {
	request
} from '@/utils/request.js'


//业主电费订单列表
export const ownerEleOrderList = data => {
	return request({
		url: '/v1/electricityOrder/ownerOrderList',
		method: 'POST',
		data
	})
}

//电费订单列表
export const operatorEleOrderList = data => {
	return request({
		url: '/v1/electricityOrder/operatorOrderList',
		method: 'POST',
		data
	})
}

//业主电费子订单
export const eleOwnerOrderDetails = id => {
	return request({
		url: `/v1/electricityOrder/ownerOrderSonList/${ id }`,
		method: 'GET'
	})
}

//运营商电费子订单
export const eleOperatorOrderDetails = id => {
	return request({
		url: `/v1/electricityOrder/operatorOrderSonList/${ id }`,
		method: 'GET'
	})
}

//运营商开票列表
export const operatorInvoiceList = id => {
	return request({
		url: `/v1/fapiao/invoiceList/${ id }`,
		method: 'GET'
	})
}